import { ParameterizedContext } from "koa";
import { IRouterParamContext } from "koa-router";
import {checkUser} from "./userServer";
//新增用户
export const addUser = async(ctx: ParameterizedContext<any, IRouterParamContext<any, {}>, any>)=>{
    console.log(typeof ctx.request.query);
    const {
        pass,
        msg
    } = await checkUser(ctx);
    if(pass){
        console.log(pass)
    }else{
        ctx.body = {
            code: 1,
            msg
        }
    }
}
